package com.mjh.action;

import org.apache.log4j.Logger;
import com.opensymphony.xwork2.ActionSupport;
import com.mjh.bean.SystemConfig;
import com.mjh.manager.SystemConfigManager;

public class SystemConfigAction extends ActionSupport{

	private static final long serialVersionUID = -5969814568349114819L;
	
	public static Logger log = Logger.getLogger(SystemConfigAction.class);
	
	private SystemConfigManager manager = new SystemConfigManager();
	
	private SystemConfig config;
	
	public String gSystemConfig(){
		config = manager.getSysConfig();
		return SUCCESS;
	}

	public void setConfig(SystemConfig config) {
		this.config = config;
	}
	
	public SystemConfig getConfig() {
		return this.config;
	}
}
